package com.wangijun.yuan.web.run;

import com.wangijun.yuan.web.config.CaptchaResourceStore;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@RequiredArgsConstructor
public class AppRun implements CommandLineRunner {
    private final CaptchaResourceStore captchaResourceStore;

    @Override
    public void run(String... args)  {
        captchaResourceStore.init();
    }
}
